function outDwt = lab2quantTest(inImg,wavType,numLev,itHaar)

[cA,cH,cV,cD] = dwt2(inImg,wavType);

outCA = lab2lloyds(cA,numLev);
outCH = lab2lloyds(cH,numLev);
outCV = lab2lloyds(cV,numLev);
outCD = lab2lloyds(cD,numLev);

if(itHaar>1)
        [cA,cH,cV,cD] = dwt2(outCA,wavType);
        outCA2 = lab2lloyds(cA,numLev);
        outCH2 = lab2lloyds(cH,numLev);
        outCV2 = lab2lloyds(cV,numLev);
        outCD2 = lab2lloyds(cD,numLev);
        outCA = idwt2(outCA2,outCH2,outCV2,outCD2,wavType);
end
[entropy(outCD)]
outDwt = idwt2(outCA,outCH,outCV,outCD,wavType);

end